﻿using System.Windows;

namespace RotovapPlatform.UI.Validation
{
	/// <summary>
	/// 依赖对象代理，用于在ValidationRule中使用绑定
	/// </summary>
	public class DependencyObjectProxy : DependencyObject
	{
		/// <summary>
		/// 数据属性
		/// </summary>
		public static readonly DependencyProperty DataProperty =
			DependencyProperty.Register("Data", typeof(object), typeof(DependencyObjectProxy));

		/// <summary>
		/// 数据
		/// </summary>
		public object Data
		{
			get { return GetValue(DataProperty); }
			set { SetValue(DataProperty, value); }
		}
	}
}